home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / recent / bencht.lha / BenchTrash / Extras / ReadMe < prev    next >
Text File  |  1998-02-11  |  3KB  |  91 lines

  1. Two files in this drawer are due to Steve Clack. They can be used to
  2. remove a device completely using BenchTrash, i.e. dismount the volume and
  3. the device handler itself. They DO NOT EJECT volumes!
  4.  
  5. Another utility - Park - is included and can be used to park HDs with 
  6. BenchTrash. 
  7.  
  8.  
  9. To install these files, copy "RemoveDevice" to S: and "ResolveDeviceName"
  10. to C:. "Park" should go to C: and should probably be made resident in the
  11. startup-sequence - simply to be able restart your HD since C: won't be 
  12. available on a parked unit. More on that below.
  13. The "S" protection bit of "RemoveDevice" must be set manually, since
  14. - due to a bug in LHA - it won't be set in this archive. A command line like
  15.  
  16. protect S:RemoveDevice s add
  17.  
  18. should do this job.
  19.  
  20. Specify the script "RemoveDevice" as an eject command to BenchTrash, with
  21. the device name as argument, for those drives you want to quit manually 
  22. by "drag and drop". Consult the "BenchTrash.guide" itself on how to do this, 
  23. see the "Configurations" chapter.
  24.  
  25. The "ResolveDeviceName" program, also by Steve, determinates the name of a
  26. volume, inserted to a specified device. It's needed for the script to work,
  27. but can be used for other purposes as well.
  28.  
  29. Thanks, Steve, for this support. For copyright reasons (i.e. if you want to
  30. publish this archive on something different than aminet and the aminet CDs), 
  31. ask him as well, since these are his programs.
  32.  
  33.  
  34. Park uses the following syntax:
  35.  
  36. Park HANDLER,DEVICE/K,UNIT/N,FLAGS/N,SCSI/S,ON=START/S: 
  37.  
  38. HANDLER is the name of the drive to be stopped, this can be something like
  39. "DH0:" or "Workbench:". Note that all partitions on the same physical unit
  40. will be unaccessible as well. Since even C: will be unaccessible on a parked
  41. unit, "Park" can be made resident - to be able to restart this unit later on.
  42. The "p" bit might be cleared in the lha archive you got, so you need to set 
  43. this bit by hand with
  44.  
  45. resident Park p add
  46.  
  47. and - later on - add "Park" to the resident list with
  48.  
  49. resident C:Park
  50.  
  51. probably by adding this line to your startup-sequence or the user-startup.
  52.  
  53.  
  54. You can alternatively specify the HD to be parked by its exec-device name,
  55. the unit and optionally the flags - the default flag value 0 is however good
  56. enough in almost all cases. The command
  57.  
  58. Park DEVICE scsi.device UNIT 1
  59.  
  60. will park the HD with ID 1 connected to the "scsi.device".
  61.  
  62.  
  63. The flag "SCSI" should be given if the device driver is a SCSI host adapter
  64. or an exec device that emulates the SCSI Start/Stop commands. "Park" tries
  65. then to send SCSI-specific commands to park or restart the device. If "SCSI"
  66. is NOT given, "Park" will try to send the command "CMD_STOP" or "CMD_START".
  67.  
  68. Note that most SCSI device drivers DO NOT support these two commands, so 
  69. won't work without the "SCSI" command line switch.
  70.  
  71.  
  72. If the flag "ON" or "START" is present, "Park" tries to restart a parked
  73. unit.
  74.  
  75.  
  76. Examples: 
  77.  
  78. The following line in your BenchTrash ToolTypes will park all "oktagon"
  79. units dropped on "BenchTrash":
  80.  
  81. EJECT oktagon.?/Park DEVICE=%S UNIT=%N SCSI
  82.  
  83. The command line switch "SCSI" is actually not required for the "oktagon",
  84. since it supports both "CMD_START/STOP" AND the "HD_SCSICMD".
  85.  
  86.  
  87.  
  88. Thomas,        
  89.     February 1998
  90.  
  91.